package com.duan.laugh.msg.api.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 系统消息
 *
 * @author duanjw
 */
@Data
@Accessors(chain = true)
public class Msg implements Serializable {
    @ApiModelProperty(value = "接收者", example = "", required = true)
    private String rec;
    @ApiModelProperty(value = "主题", example = "测试邮件", required = true)
    private String subject;

    @ApiModelProperty(value = "模板内参数，格式为json字符串", example = "{\"id\":\"123\"}")
    private String param;

    @ApiModelProperty(value = "内容", example = "我是邮件内容")
    private String content;

    @ApiModelProperty(value = "模板ID", example = "mailTemplate", required = true)
    private String templateCode;

}
